package com.fh.modules.online.cgreport.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fh.modules.online.cgreport.entity.OnlCgreportHead;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @description: 在线报表配置Mapper
 */
@Mapper
public interface OnlCgreportHeadMapper extends BaseMapper<OnlCgreportHead> {
    /**
     * 执行查询SQL语句
     *
     * @param sql
     * @return
     */
    List<Map<?,?>> executeSelete(String sql);

    /**
     * 动态sql查询数据量
     * @param sql
     * @return
     */
    Long queryCountBySql(String countSql);

    List<String> queryCgReportParams(String reportId);

    List<Map<String,Object>> queryCgReportItems(String reportId);

    Map<String,Object> queryCgReportMainConfig(String reportId);
}
